    FUNCTION_BLOCK Valve
        VAR_INPUT
            cmdOpen : BOOL;
        END_VAR
        VAR_OUTPUT
            ctrlOpen : BOOL;
            isOpen : BOOL;
            isClosed : BOOL;
        END_VAR
        ;
END_FUNCTION_BLOCK
